imageware
Class ShortSet

java.lang.Object
  extended by imageware.ShortBuffer
      extended by imageware.ShortAccess
          extended by imageware.ShortPointwise
              extended by imageware.ShortProcess
                  extended by imageware.ShortSet
All Implemented Interfaces:
Access, Buffer, ImageWare, Pointwise, Process

public class ShortSet
extends ShortProcess
implements ImageWare

Class ShortSet.


Field Summary
 
Fields inherited from class imageware.ShortBuffer
data, nx, nxy, ny, nz
 
Fields inherited from interface imageware.ImageWare
BLUE, BYTE, CREATE, DOUBLE, FLOAT, GREEN, MIRROR, NONE, PERIODIC, RED, SHORT, UNDEFINED, UNDEFINED_BOUNDARY, UNDEFINED_TYPE, WRAP
 
Constructor Summary
protected ShortSet(byte[][][] array, int mode)
           
protected ShortSet(byte[][] array, int mode)
           
protected ShortSet(byte[] array, int mode)
           
protected ShortSet(double[][][] array, int mode)
           
protected ShortSet(double[][] array, int mode)
           
protected ShortSet(double[] array, int mode)
           
protected ShortSet(float[][][] array, int mode)
           
protected ShortSet(float[][] array, int mode)
           
protected ShortSet(float[] array, int mode)
           
protected ShortSet(java.awt.Image image, int mode)
           
protected ShortSet(ij.ImageStack stack, byte chan)
           
protected ShortSet(ij.ImageStack stack, int mode)
           
protected ShortSet(int nx, int ny, int nz)
           
protected ShortSet(short[][][] array, int mode)
           
protected ShortSet(short[][] array, int mode)
           
protected ShortSet(short[] array, int mode)
           
 
Method Summary
 ImageWare convert(int type)
          convert the imageware in a specified type.
 void copy(ImageWare source)
          Copy all the data of source in the current imageware.
 ImageWare duplicate()
          Duplicate the imageware.
 double getMaximum()
          Return the maximum value of this imageware.
 double getMean()
          Return the mean value of this imageware.
 double getMinimum()
          Return the minimum value of this imageware.
 double[] getMinMax()
          Return the the minumum [0] and the maximum [1] value of this imageware.
 double getNorm1()
          Return the norm value of order 1.
 double getNorm2()
          Return the norm value of order 2.
 double getTotal()
          Return the sum of all pixel in this imageware.
 void printInfo()
          Print information of this ImageWare object.
 ImageWare replicate()
          Replicate the imageware.
 ImageWare replicate(int type)
          Replicate the imageware.
 void show()
          Show this ImageWare object.
 void show(java.lang.String title)
          Show the data in ImagePlus object with a specify title.
 
Methods inherited from class imageware.ShortProcess
add, divide, max, min, multiply, smoothGaussian, smoothGaussian, subtract
 
Methods inherited from class imageware.ShortPointwise
abs, add, addGaussianNoise, addSaltPepper, addUniformNoise, buildImageStack, clip, clip, divide, exp, fillConstant, fillGaussianNoise, fillRamp, fillSaltPepper, fillUniformNoise, invert, log, multiply, negate, pow, rescale, rescale, rescaleCenter, sqr, sqrt, subtract, threshold, threshold, thresholdHard, thresholdSoft
 
Methods inherited from class imageware.ShortAccess
getBlockX, getBlockX, getBlockX, getBlockX, getBlockXY, getBlockXY, getBlockXY, getBlockXY, getBlockXYZ, getBlockXYZ, getBlockXYZ, getBlockXYZ, getBlockXZ, getBlockXZ, getBlockXZ, getBlockXZ, getBlockY, getBlockY, getBlockY, getBlockY, getBlockYZ, getBlockYZ, getBlockYZ, getBlockYZ, getBlockZ, getBlockZ, getBlockZ, getBlockZ, getBoundedX, getBoundedX, getBoundedX, getBoundedX, getBoundedXY, getBoundedXY, getBoundedXY, getBoundedXY, getBoundedXYZ, getBoundedXYZ, getBoundedXYZ, getBoundedXYZ, getBoundedXZ, getBoundedXZ, getBoundedXZ, getBoundedXZ, getBoundedY, getBoundedY, getBoundedY, getBoundedY, getBoundedYZ, getBoundedYZ, getBoundedYZ, getBoundedYZ, getBoundedZ, getBoundedZ, getBoundedZ, getBoundedZ, getInterpolatedPixel, getInterpolatedPixel, getNeighborhoodX, getNeighborhoodX, getNeighborhoodX, getNeighborhoodX, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodY, getNeighborhoodY, getNeighborhoodY, getNeighborhoodY, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodZ, getNeighborhoodZ, getNeighborhoodZ, getNeighborhoodZ, getPixel, getPixel, putBoundedX, putBoundedX, putBoundedX, putBoundedX, putBoundedXY, putBoundedXY, putBoundedXY, putBoundedXY, putBoundedXYZ, putBoundedXYZ, putBoundedXYZ, putBoundedXYZ, putBoundedXZ, putBoundedXZ, putBoundedXZ, putBoundedXZ, putBoundedY, putBoundedY, putBoundedY, putBoundedY, putBoundedYZ, putBoundedYZ, putBoundedYZ, putBoundedYZ, putBoundedZ, putBoundedZ, putBoundedZ, putBoundedZ, putPixel
 
Methods inherited from class imageware.ShortBuffer
getDepth, getDimension, getHeight, getSize, getSizeX, getSizeY, getSizeZ, getSliceByte, getSliceDouble, getSliceFloat, getSliceShort, getTotalSize, getType, getTypeToString, getVolume, getWidth, getX, getX, getX, getX, getX, getXY, getXY, getXY, getXY, getXY, getXYZ, getXYZ, getXYZ, getXYZ, getXYZ, getXZ, getXZ, getXZ, getXZ, getXZ, getY, getY, getY, getY, getY, getYZ, getYZ, getYZ, getYZ, getYZ, getZ, getZ, getZ, getZ, getZ, isSameSize, putX, putX, putX, putX, putX, putXY, putXY, putXY, putXY, putXY, putXYZ, putXYZ, putXYZ, putXYZ, putXYZ, putXZ, putXZ, putXZ, putXZ, putXZ, putY, putY, putY, putY, putY, putYZ, putYZ, putYZ, putYZ, putYZ, putZ, putZ, putZ, putZ, putZ, throw_constructor, throw_constructor, throw_get, throw_put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface imageware.Process
add, divide, max, min, multiply, smoothGaussian, smoothGaussian, subtract
 
Methods inherited from interface imageware.Pointwise
abs, add, addGaussianNoise, addSaltPepper, addUniformNoise, buildImageStack, clip, clip, divide, exp, fillConstant, fillGaussianNoise, fillRamp, fillSaltPepper, fillUniformNoise, invert, log, multiply, negate, pow, rescale, rescale, rescaleCenter, sqr, sqrt, subtract, threshold, threshold, thresholdHard, thresholdSoft
 
Methods inherited from interface imageware.Access
getBlockX, getBlockX, getBlockX, getBlockX, getBlockXY, getBlockXY, getBlockXY, getBlockXY, getBlockXYZ, getBlockXYZ, getBlockXYZ, getBlockXYZ, getBlockXZ, getBlockXZ, getBlockXZ, getBlockXZ, getBlockY, getBlockY, getBlockY, getBlockY, getBlockYZ, getBlockYZ, getBlockYZ, getBlockYZ, getBlockZ, getBlockZ, getBlockZ, getBlockZ, getBoundedX, getBoundedX, getBoundedX, getBoundedX, getBoundedXY, getBoundedXY, getBoundedXY, getBoundedXY, getBoundedXYZ, getBoundedXYZ, getBoundedXYZ, getBoundedXYZ, getBoundedXZ, getBoundedXZ, getBoundedXZ, getBoundedXZ, getBoundedY, getBoundedY, getBoundedY, getBoundedY, getBoundedYZ, getBoundedYZ, getBoundedYZ, getBoundedYZ, getBoundedZ, getBoundedZ, getBoundedZ, getBoundedZ, getInterpolatedPixel, getInterpolatedPixel, getNeighborhoodX, getNeighborhoodX, getNeighborhoodX, getNeighborhoodX, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXY, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXYZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodXZ, getNeighborhoodY, getNeighborhoodY, getNeighborhoodY, getNeighborhoodY, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodYZ, getNeighborhoodZ, getNeighborhoodZ, getNeighborhoodZ, getNeighborhoodZ, getPixel, getPixel, putBoundedX, putBoundedX, putBoundedX, putBoundedX, putBoundedXY, putBoundedXY, putBoundedXY, putBoundedXY, putBoundedXYZ, putBoundedXYZ, putBoundedXYZ, putBoundedXYZ, putBoundedXZ, putBoundedXZ, putBoundedXZ, putBoundedXZ, putBoundedY, putBoundedY, putBoundedY, putBoundedY, putBoundedYZ, putBoundedYZ, putBoundedYZ, putBoundedYZ, putBoundedZ, putBoundedZ, putBoundedZ, putBoundedZ, putPixel
 
Methods inherited from interface imageware.Buffer
getDepth, getDimension, getHeight, getSize, getSizeX, getSizeY, getSizeZ, getSliceByte, getSliceDouble, getSliceFloat, getSliceShort, getTotalSize, getType, getTypeToString, getVolume, getWidth, getX, getX, getX, getX, getX, getXY, getXY, getXY, getXY, getXY, getXYZ, getXYZ, getXYZ, getXYZ, getXYZ, getXZ, getXZ, getXZ, getXZ, getXZ, getY, getY, getY, getY, getY, getYZ, getYZ, getYZ, getYZ, getYZ, getZ, getZ, getZ, getZ, getZ, isSameSize, putX, putX, putX, putX, putX, putXY, putXY, putXY, putXY, putXY, putXYZ, putXYZ, putXYZ, putXYZ, putXYZ, putXZ, putXZ, putXZ, putXZ, putXZ, putY, putY, putY, putY, putY, putYZ, putYZ, putYZ, putYZ, putYZ, putZ, putZ, putZ, putZ, putZ
 

Constructor Detail

ShortSet

protected ShortSet(int nx,
                   int ny,
                   int nz)

ShortSet

protected ShortSet(java.awt.Image image,
                   int mode)

ShortSet

protected ShortSet(ij.ImageStack stack,
                   int mode)

ShortSet

protected ShortSet(ij.ImageStack stack,
                   byte chan)

ShortSet

protected ShortSet(byte[] array,
                   int mode)

ShortSet

protected ShortSet(byte[][] array,
                   int mode)

ShortSet

protected ShortSet(byte[][][] array,
                   int mode)

ShortSet

protected ShortSet(short[] array,
                   int mode)

ShortSet

protected ShortSet(short[][] array,
                   int mode)

ShortSet

protected ShortSet(short[][][] array,
                   int mode)

ShortSet

protected ShortSet(float[] array,
                   int mode)

ShortSet

protected ShortSet(float[][] array,
                   int mode)

ShortSet

protected ShortSet(float[][][] array,
                   int mode)

ShortSet

protected ShortSet(double[] array,
                   int mode)

ShortSet

protected ShortSet(double[][] array,
                   int mode)

ShortSet

protected ShortSet(double[][][] array,
                   int mode)
Method Detail

duplicate

public ImageWare duplicate()
Duplicate the imageware. Create a new imageware with the same size, same type and same data than the calling one.

Specified by:
duplicate in interface ImageWare
Returns:
a duplicated version of this imageware

replicate

public ImageWare replicate()
Replicate the imageware. Create a new imageware with the same size, same type than the calling one. The data are not copied.

Specified by:
replicate in interface ImageWare
Returns:
a replicated version of this imageware

replicate

public ImageWare replicate(int type)
Replicate the imageware. Create a new imageware with the same size and a specified type than the calling one. The data are not copied.

Specified by:
replicate in interface ImageWare
Parameters:
type - requested type
Returns:
a replicated version of this imageware

copy

public void copy(ImageWare source)
Copy all the data of source in the current imageware. The source should have the same size and same type than the calling one.

Specified by:
copy in interface ImageWare
Parameters:
source - a source imageware

convert

public ImageWare convert(int type)
convert the imageware in a specified type. Create a new imageware with the same size and converted data than the calling one.

Specified by:
convert in interface ImageWare
Parameters:
type - indicates the type of the output
Returns:
a converted version of this imageware

printInfo

public void printInfo()
Print information of this ImageWare object.

Specified by:
printInfo in interface ImageWare

show

public void show()
Show this ImageWare object.

Specified by:
show in interface ImageWare

show

public void show(java.lang.String title)
Show the data in ImagePlus object with a specify title.

Specified by:
show in interface ImageWare
Parameters:
title - a string given the title of the window

getMinimum

public double getMinimum()
Return the minimum value of this imageware.

Specified by:
getMinimum in interface ImageWare
Returns:
the min value of this imageware

getMaximum

public double getMaximum()
Return the maximum value of this imageware.

Specified by:
getMaximum in interface ImageWare
Returns:
the max value of this imageware

getMean

public double getMean()
Return the mean value of this imageware.

Specified by:
getMean in interface ImageWare
Returns:
the mean value of this imageware

getNorm1

public double getNorm1()
Return the norm value of order 1.

Specified by:
getNorm1 in interface ImageWare
Returns:
the norm value of this imageware in L1 sense

getNorm2

public double getNorm2()
Return the norm value of order 2.

Specified by:
getNorm2 in interface ImageWare
Returns:
the norm value of this imageware in L2 sense

getTotal

public double getTotal()
Return the sum of all pixel in this imageware.

Specified by:
getTotal in interface ImageWare
Returns:
the total sum of all pixel in this imageware

getMinMax

public double[] getMinMax()
Return the the minumum [0] and the maximum [1] value of this imageware. Faster routine than call one getMinimum() and then one getMaximum().

Specified by:
getMinMax in interface ImageWare
Returns:
an array of two values, the min and the max values of the images